<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>  

<!doctype html>
<html lang="zh-hans">
<%@ include file="_header.jsp" %>
<body>

<%  
  String code = request.getParameter("code");        
%>

<form action="/microhifo/test_openid" method="post"> 
   
<!-- 隐藏数据域 -->
<div class="input-group">
<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3c0d18351a1111ec&redirect_uri=http%3A%2F%2Fwe.51waji.com%2Fmicrohifo%2Ftest_openid&response_type=code&scope=snsapi_userinfo&state=test#wechat_redirect">测试</a>
<input type="text" class="form-control" name="openid" placeholder="openid" value="<s:property value="openid"/>">
<input type="text" class="form-control" name="code" placeholder="code" value="<%=code%>">
<input type="text" class="form-control" name="accessToken" placeholder="accessToken" value="<s:property value="accessToken"/>">
<input type="text" class="form-control" name="refreshToken" placeholder="refreshToken" value="<s:property value="refreshToken"/>">

<input type="text" class="form-control" name="nickname" placeholder="nickname" value="<s:property value="nickname"/>">
<input type="text" class="form-control" name="headimg" placeholder="headimg" value="<s:property value="headimg"/>">




</div>	 

<!-- 头像 -->
<img src="<s:property value="headimg"/>" alt="" style="height: 220px;">  
<!--广告		-->
<div class="jumbotron">

<div class="form-group login">
<label for="exampleInputEmail1"><a href='<s:property value="headimg"/>">'>头像</a></label>
<label for="exampleInputEmail1">用户名</label>
<input type="text" class="form-control" id="exampleInputEmail1" placeholder="Name">
</div>
<div class="form-group">
<label for="exampleInputPassword1">密码</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">登录</button>

</div><!--jumbotron-->   
    
</form>   
  
        




</body>
</html>